home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!tsys.demon.co.uk
- From: Tom Wheeley <tomw@tsys.demon.co.uk>
- Newsgroups: comp.lang.c++,comp.lang.c
- Subject: Re: HELP: no mapping at the fault address
- Date: Sun, 07 Apr 96 02:20:49 GMT
- Organization: City Zen FM
- Message-ID: <828843649snz@tsys.demon.co.uk>
- References: <opybocswab.fsf@sweetbay.will.uiuc.edu> <4k3qn8$1gk6@msunews.cl.msu.edu> <828829661snz@genesis.demon.co.uk>
- Reply-To: tomw@tsys.demon.co.uk
- X-NNTP-Posting-Host: tsys.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.30
- X-Sig-By: Tomsystems Quote v1.2. (c)1996 Tom Wheeley, tomw@tsys.demon.co.uk
- X-Mail2News-Path: tsys.demon.co.uk
-
- In article <828829661snz@genesis.demon.co.uk>
- fred@genesis.demon.co.uk "Lawrence Kirby" writes:
-
- > In article <4k3qn8$1gk6@msunews.cl.msu.edu>
- > jliu@perm.fw.msu.edu "Jianguo Liu" writes:
- >
- > >Hello, everyone:
- > >
- > >I had an error when running a program in SPARCcompiler C++
- > >4.0.1 (Solaris 2.4). The error was deteced using dbx. The
- > >message was
- > >
- > >**********************************
- > >
- > >signal SEGV (no mapping at the fault address) in t-splay at
- > >0xef6bc470.
- > >
- > >The current line is
- > >
- > >new_ptr=(strucut tree *) malloc(sizeof(struct tree));
- >
- > Did you include stdlib.h? You must ensure that all functions that don't
- > return int or are variadic are declared (it is best that all functions are
- > declared). If that isn't the problem your program probably corrupted the
-
- Would I be right in saying that if he had omitted the cast for the return
- value of malloc() then this error would have arisen as a warning in an
- ISO compiler? With (void *) being `equivalent' to any old pointer etc.
-
- .splitbung
- --
- * TQ 1.0 * The 'Just So Quotes'.
- "If we do not succeed, then we face the risk of failure."
- -- Dan Quayle, Vice-President of the United States
-